package winOrDie.graphics.maps;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 * This public class defines the WinOrDie map structure
 */
public class WoD_Map 
{
	private String mapTitle = null;
	private Map_Board mapBoard = null;
	
	/**
	 * This public method returns the {@link WoD_Map} mapTitle property
	 * @return {@link String}
	 */
	public String getMapTitle() {
		return mapTitle;
	}
	
	/**
	 * This public method allows to set the {@link WoD_Map} mapTitle property
	 * @param mapTitle
	 */
	public void setMapTitle(String mapTitle) {
		this.mapTitle = mapTitle;
	}
	
	/**
	 * This public method returns the {@link Map_Board} object
	 * @return {@link Map_Board}
	 */
	public Map_Board getMapBoard() {
		return mapBoard;
	}
	
	/**
	 * This public method allows to set the {@link Map_Board} object
	 * @param mapBoard
	 */
	public void setMapBoard(Map_Board mapBoard) {
		this.mapBoard = mapBoard;
	}
	
	
	

	/**
	 * This public method returns {@link Element} object that contains {@link WoD_Map} data
	 * @param document
	 * @return {@link Element}
	 * @throws Exception
	 */
	public Element get_XML_Element(Document document) throws Exception
	{
		return WoD_Map_Editor.get_Element_From_WoD_Map(this, document);
	}
	
	
}
